<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../../baselist.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户列表</title>
</head>

<body>
<form name="icform" method="post">

    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="view"><a href="#" onclick="formSubmit('toview','_self');this.blur();">查看</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('tocreate','_self');this.blur();">新增</a></li>
                        <li id="update"><a href="#" onclick="formSubmit('toupdate','_self');this.blur();">修改</a></li>
                        <li id="delete"><a href="#" onclick="formSubmit('delete','_self');this.blur();">删除</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('start1','_self');this.blur();">启用</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('stop1','_self');this.blur();">停用</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('role','_self');this.blur();">角色</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="textbox-title">
        <img src="../../staticfile/skin/default/images/icon/currency_yen.png"/>
        部门列表
    </div>

    <div>

        <div class="eXtremeTable">
            <table id="ec_table" class="tableRegion" width="98%">
                <thead>
                <tr>
                    <td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('userId',this)"></td>
                    <td class="tableHeader">序号</td>
                    <td class="tableHeader">用户名</td>
                    <td class="tableHeader">昵称</td>
                    <td class="tableHeader">性别</td>
                    <td class="tableHeader">薪资</td>
                    <td class="tableHeader">岗位</td>
                    <td class="tableHeader">电话</td>
                    <td class="tableHeader">所属部门</td>
                    <td class="tableHeader">上级领导</td>
                    <td class="tableHeader">状态</td>
                </tr>
                </thead>
                <tbody class="tableBody">
                <c:forEach items="${users}" var="u" varStatus="status">
                    <tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'">
                        <td><input type="checkbox" name="userId" value="${u.userId}"/></td>
                        <td>${u.userInfo.orderNo}</td>
                        <td><a href="toview?id=${u.userId}">${u.username}</td>
                        <td>${u.userInfo.name}</td>
                        <td>${u.userInfo.gender}</td>
                        <td>${u.userInfo.salary}</td>
                        <td>${u.userInfo.station}</td>
                        <td>${u.userInfo.telephone}</td>
                        <td>${u.dept.deptName}</td>
                        <td>${u.userInfo.managerUserInfo.name}</td>
                        <td>
                            <c:if test="${u.state==1}"><a href="stop1?userId=${u.userId}"><font
                                    color="green">启用</font></a></c:if>
                            <c:if test="${u.state==0}"><a href="start1?userId=${u.userId}"><font
                                    color="red">停用</font></a></c:if>
                        </td>
                    </tr>
                </c:forEach>

                </tbody>
            </table>
        </div>

    </div>


</form>
</body>
</html>

